package com.project.dao;

import com.project.entity.Class;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 12:33
 * @param:
 * @return:
 */
public interface ClassMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Class record);

    int insertSelective(Class record);

    Class selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Class record);

    int updateByPrimaryKey(Class record);

    List<Class> selectByMajorid(Integer majorid);

    List<Class> selectBatchBySchoolId(Integer schoolId);

    int checkClassIsExist(Class clazz);

    int deleteByMajorId(Integer majorId);

    int deleteByDepartmentId(Integer departmentId);

    int deleteBatchBySchoolId(Integer schoolId);
}
